Skip to content

Shape inspection - #228

Open
torusJKL wants to merge 8 commits into
bschwind:mainfrom
torusJKL:shape-inspection
Open

Shape inspection#228
torusJKL wants to merge 8 commits into
bschwind:mainfrom
torusJKL:shape-inspection

Conversation

@torusJKL

Copy link
Copy Markdown
Contributor

This PR adds inspection/query capabilities across shape types.
I included all the different types in one PR since they are all about inspection of properties but I can split them based on shape type if that is preferable.

The following can be inspected:

Solid

  • volume(), center_of_mass(), surface_area()

Face / Surface

  • SurfaceType enum with face type detection
  • Surface geometry: periodicity, continuity, degrees, knots, poles, evaluation (d0, d1, d2)

Edge

  • length(), tangent_at(), arc_center(), radius()

Wire

  • length(), is_closed()

Shape

  • center_of_mass()

@bschwind

bschwind commented Jul 1, 2026

Copy link
Copy Markdown
Owner

@torusJKL Thanks for another PR, I'll try to get to reviewing this soon, it'll take a bit of time as it's a larger PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants